﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Goods.aspx.cs" Inherits="Pages_Goods" MasterPageFile="~/Admin/MasterPage.master" Title="商品管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="1768px" BoxWidth="440px" Url="GoodsForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加商品</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvGoods" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="SiteID" HeaderText="站点编号" SortExpression="SiteID" />
            <asp:BoundField DataField="CatalogID" HeaderText="类别编号" SortExpression="CatalogID" />
            <asp:BoundField DataField="CatalogInnerCode" HeaderText="类别内部代码" SortExpression="CatalogInnerCode" />
            <asp:BoundField DataField="BrandID" HeaderText="品牌编号" SortExpression="BrandID" />
            <asp:BoundField DataField="BranchInnerCode" HeaderText="分支内部代码" SortExpression="BranchInnerCode" />
            <asp:BoundField DataField="Type" HeaderText="类型" SortExpression="Type" />
            <asp:BoundField DataField="SN" HeaderText="" SortExpression="SN" />
            <asp:BoundField DataField="Name" HeaderText="名称" SortExpression="Name" />
            <asp:BoundField DataField="Alias" HeaderText="别名" SortExpression="Alias" />
            <asp:BoundField DataField="BarCode" HeaderText="条形码" SortExpression="BarCode" />
            <asp:BoundField DataField="WorkFlowID" HeaderText="流程编号" SortExpression="WorkFlowID" />
            <asp:BoundField DataField="Status" HeaderText="状态" SortExpression="Status" />
            <asp:BoundField DataField="Factory" HeaderText="工厂" SortExpression="Factory" />
            <asp:BoundField DataField="OrderFlag" HeaderText="订单标记" SortExpression="OrderFlag" />
            <asp:BoundField DataField="MarketPrice" HeaderText="市场价格" SortExpression="MarketPrice" />
            <asp:BoundField DataField="Price" HeaderText="价格" SortExpression="Price" />
            <asp:BoundField DataField="Discount" HeaderText="" SortExpression="Discount" />
            <asp:BoundField DataField="OfferPrice" HeaderText="" SortExpression="OfferPrice" />
            <asp:BoundField DataField="MemberPrice" HeaderText="成员价格" SortExpression="MemberPrice" />
            <asp:BoundField DataField="VIPPrice" HeaderText="VIP价格" SortExpression="VIPPrice" />
            <asp:BoundField DataField="EffectDate" HeaderText="效果日期" SortExpression="EffectDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="Store" HeaderText="存储" SortExpression="Store" />
            <asp:BoundField DataField="Standard" HeaderText="标准" SortExpression="Standard" />
            <asp:BoundField DataField="Unit" HeaderText="单位" SortExpression="Unit" />
            <asp:BoundField DataField="Score" HeaderText="分数" SortExpression="Score" />
            <asp:BoundField DataField="CommentCount" HeaderText="注释数量" SortExpression="CommentCount" />
            <asp:BoundField DataField="SaleCount" HeaderText="售出数量" SortExpression="SaleCount" />
            <asp:BoundField DataField="HitCount" HeaderText="点击数量" SortExpression="HitCount" />
            <asp:BoundField DataField="Image0" HeaderText="图片0" SortExpression="Image0" />
            <asp:BoundField DataField="Image1" HeaderText="图片1" SortExpression="Image1" />
            <asp:BoundField DataField="Image2" HeaderText="图片2" SortExpression="Image2" />
            <asp:BoundField DataField="Image3" HeaderText="图片3" SortExpression="Image3" />
            <asp:BoundField DataField="RelativeGoods" HeaderText="关系" SortExpression="RelativeGoods" />
            <asp:BoundField DataField="Keyword" HeaderText="关键字" SortExpression="Keyword" />
            <asp:BoundField DataField="TopDate" HeaderText="顶部日期" SortExpression="TopDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="TopFlag" HeaderText="顶部标记" SortExpression="TopFlag" />
            <asp:BoundField DataField="RedirectURL" HeaderText="重定向网址" SortExpression="RedirectURL" />
            <asp:BoundField DataField="Attribute" HeaderText="属性" SortExpression="Attribute" />
            <asp:BoundField DataField="RecommendGoods" HeaderText="推荐商品" SortExpression="RecommendGoods" />
            <asp:BoundField DataField="StickTime" HeaderText="" SortExpression="StickTime" />
            <asp:BoundField DataField="PublishDate" HeaderText="发布日期" SortExpression="PublishDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="DownlineDate" HeaderText="下线日期" SortExpression="DownlineDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="Memo" HeaderText="注释" SortExpression="Memo" />
            <asp:BoundField DataField="Prop1" HeaderText="属性1" SortExpression="Prop1" />
            <asp:BoundField DataField="Prop2" HeaderText="属性2" SortExpression="Prop2" />
            <asp:BoundField DataField="Prop3" HeaderText="属性3" SortExpression="Prop3" />
            <asp:BoundField DataField="Prop4" HeaderText="属性4" SortExpression="Prop4" />
            <asp:BoundField DataField="AddUser" HeaderText="添加用户" SortExpression="AddUser" />
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" SortExpression="AddTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="ModifyUser" HeaderText="修改用户" SortExpression="ModifyUser" />
            <asp:BoundField DataField="ModifyTime" HeaderText="修改时间" SortExpression="ModifyTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="GoodsForm.aspx?ID={0}" Height="1768px" Text="编辑" Width="440px" Title="编辑商品">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.Shop.Goods"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.Shop.Goods">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>